package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单项目表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_order_item")
public class ShopOrderItem extends Model<ShopOrderItem> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 运送数量
     */
	@TableField("delivery_quantity")
	private Integer deliveryQuantity;
    /**
     * sku静态化 地址
     */
	@TableField("html_path")
	private String htmlPath;
    /**
     * 商品名称
     */
	@TableField("sku_name")
	private String skuName;
	@TableField("sku_id")
	private Integer skuId;
    /**
     * 商品价格
     */
	@TableField("sku_price")
	private BigDecimal skuPrice;
    /**
     * 商品数量
     */
	@TableField("sku_quantity")
	private Integer skuQuantity;
    /**
     * 商品单重
     */
	@TableField("sku_weight")
	private BigDecimal skuWeight;
    /**
     * 商品序列号
     */
	@TableField("sku_sn")
	private String skuSn;
    /**
     * 运送总量
     */
	@TableField("total_delivery_quantity")
	private Integer totalDeliveryQuantity;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Integer orderId;
    /**
     * 商品id
     */
	@TableField("product_id")
	private Integer productId;
    /**
     * 购物车id
     */
	@TableField("cartItem_id")
	private Integer cartitemId;
    /**
     * 订单用户id
     */
	@TableField("user_id")
	private Integer userId;
    /**
     * 总重量
     */
	@TableField("all_weight")
	private BigDecimal allWeight;
    /**
     * sku的规格
     */
	@TableField("attribute_json")
	private String attributeJson;
    /**
     * sku的参数
     */
	@TableField("param_json")
	private String paramJson;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public Integer getDeliveryQuantity() {
		return deliveryQuantity;
	}

	public void setDeliveryQuantity(Integer deliveryQuantity) {
		this.deliveryQuantity = deliveryQuantity;
	}

	public String getHtmlPath() {
		return htmlPath;
	}

	public void setHtmlPath(String htmlPath) {
		this.htmlPath = htmlPath;
	}

	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	public Integer getSkuId() {
		return skuId;
	}

	public void setSkuId(Integer skuId) {
		this.skuId = skuId;
	}

	public BigDecimal getSkuPrice() {
		return skuPrice;
	}

	public void setSkuPrice(BigDecimal skuPrice) {
		this.skuPrice = skuPrice;
	}

	public Integer getSkuQuantity() {
		return skuQuantity;
	}

	public void setSkuQuantity(Integer skuQuantity) {
		this.skuQuantity = skuQuantity;
	}

	public BigDecimal getSkuWeight() {
		return skuWeight;
	}

	public void setSkuWeight(BigDecimal skuWeight) {
		this.skuWeight = skuWeight;
	}

	public String getSkuSn() {
		return skuSn;
	}

	public void setSkuSn(String skuSn) {
		this.skuSn = skuSn;
	}

	public Integer getTotalDeliveryQuantity() {
		return totalDeliveryQuantity;
	}

	public void setTotalDeliveryQuantity(Integer totalDeliveryQuantity) {
		this.totalDeliveryQuantity = totalDeliveryQuantity;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getCartitemId() {
		return cartitemId;
	}

	public void setCartitemId(Integer cartitemId) {
		this.cartitemId = cartitemId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public BigDecimal getAllWeight() {
		return allWeight;
	}

	public void setAllWeight(BigDecimal allWeight) {
		this.allWeight = allWeight;
	}

	public String getAttributeJson() {
		return attributeJson;
	}

	public void setAttributeJson(String attributeJson) {
		this.attributeJson = attributeJson;
	}

	public String getParamJson() {
		return paramJson;
	}

	public void setParamJson(String paramJson) {
		this.paramJson = paramJson;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopOrderItem{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", deliveryQuantity=" + deliveryQuantity +
			", htmlPath=" + htmlPath +
			", skuName=" + skuName +
			", skuId=" + skuId +
			", skuPrice=" + skuPrice +
			", skuQuantity=" + skuQuantity +
			", skuWeight=" + skuWeight +
			", skuSn=" + skuSn +
			", totalDeliveryQuantity=" + totalDeliveryQuantity +
			", orderId=" + orderId +
			", productId=" + productId +
			", cartitemId=" + cartitemId +
			", userId=" + userId +
			", allWeight=" + allWeight +
			", attributeJson=" + attributeJson +
			", paramJson=" + paramJson +
			"}";
	}
}
